Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update read and write #8

Merged
merged 31 commits into from
Oct 23, 2019
Merged

Update read and write #8

merged 31 commits into from
Oct 23, 2019

Conversation

CunliangGeng
Copy link
Member

@CunliangGeng CunliangGeng commented Oct 9, 2019

Updates:

  1. added element column
  2. update exportpdb to output properly formatted atom name and xyz values
  3. remove no_extra
  4. add read_pdb function
  5. add get_rot_axis_angle function
  6. update some functions to align with DeepRank needs
  7. update docstrings

Copy link
Member

@NicoRenaud NicoRenaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks nice but it breaks all the tests. So we have to fix that before merging !

pdb2sql/pdb2sqlcore.py Show resolved Hide resolved
pdb2sql/pdb2sqlcore.py Show resolved Hide resolved
pdb2sql/pdb2sql_base.py Show resolved Hide resolved
line += '\n'

f.write(line)

# close
f.close()

def _format_atomname(self, data):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's nice and controlled but is it needed to read the data ? But at least to write it I think it's really useful

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the input PDB has strict format, so we don't it that for reading. But we do need some code to preprocess PDB files, I'll write it later.

pdb2sql/pdb2sqlcore.py Show resolved Hide resolved
@CunliangGeng
Copy link
Member Author

CunliangGeng commented Oct 21, 2019

only the test_pdb2sqlAlchemy.py failed, it should be fine. I did not change anything of pdb2sqlAlchemy.py file in the PR. We can have a look at the updates together.

Copy link
Member

@NicoRenaud NicoRenaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should fix the sqlalchemy test before merging
Maybe it's as easy as using a proper pdb ...

pdb2sql/pdb2sql_base.py Show resolved Hide resolved
@CunliangGeng
Copy link
Member Author

Actually there are two bugs in pdb2sqlAlchemy.py. Fixed.

@NicoRenaud NicoRenaud merged commit 06a67a3 into master Oct 23, 2019
@CunliangGeng CunliangGeng deleted the update_read_write branch October 23, 2019 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants